import { fetchData } from '@/utils/axios/axios';
// import axios from '@/utils/axios/index';
// import axios from 'axios';
// import { orderStatusProps } from './types';
// import { sleep } from 'antd-mobile/es/utils/sleep';
// A mock function to mimic making an async request for data
// export async function fetchOrderList(params: any) {
//   console.log(params,'params')
//   return axios.get('/api/rest/orderList', params);
// }

export async function fetchOrderList(params: any) {
  return fetchData('/api/rest/orderList', 'post', params);
}
